package com.huazi.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author shkstart
 * @create 2021-03-31 11:01
 */
@Component
@FeignClient(name="service-comment",fallback = CommentClientFallback.class)
public interface CommentClient {
    @GetMapping("/comservice/edu-comment/getCommentCount/{id}")
    Integer getCommentCount(@PathVariable(value = "id") String id);
}
